package rj.vo;

import javax.servlet.annotation.WebServlet;

@WebServlet("/Circle")
public class Circle {
    private final double PI = 3.14;
    private double radius; //圆半径
    private double area; //圆面积

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
        this.area = PI * radius * radius;
    }

    public double getArea() {
        return area;
    }
}